﻿Imports Microsoft.VisualBasic
Public Class DBBankAccountsSP
    Inherits DBParentStoredProcedureClass

    Public Operation As New TableField("Operation", Data.SqlDbType.NVarChar)
    Public ID As New TableField("ID", Data.SqlDbType.Int)
    Public BankID As New TableField("BankID", Data.SqlDbType.Int)
    Public AccountNo As New TableField("AccountNo", Data.SqlDbType.NVarChar)
    Public AccountType As New TableField("AccountType", Data.SqlDbType.NVarChar)

    Sub New()
        MyBase.StoredProcedureName = "BankAccountsSP"
    End Sub

    Public Shadows Function QueryDatabase(ByVal QueryType As SqlQueryType, _
                                 Optional ByVal Operation As String = "", _
                                 Optional ByVal ID As String = "", _
                                 Optional ByVal BankID As String = "", _
                                 Optional ByVal AccountNo As String = "", _
                                 Optional ByVal AccountType As String = "") As Object
        MyBase.FieldsArrayList = New ArrayList
        Me.Operation.SetValue(Operation, MyBase.FieldsArrayList)
        Me.ID.SetValue(ID, MyBase.FieldsArrayList)
        Me.BankID.SetValue(BankID, MyBase.FieldsArrayList)
        Me.AccountNo.SetValue(AccountNo, MyBase.FieldsArrayList)
        Me.AccountType.SetValue(AccountType, MyBase.FieldsArrayList)

        Return MyBase.QueryDatabase(QueryType)
    End Function

End Class
